<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['日志信息管理','矩阵续费日志']" icon="fa fa-tag" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
		    <div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
					<h2>矩阵续费日志</h2>
				</header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
							    <div class="top_module top_module_box">
                                    <span class="top_module_label module_text">项目名称</span>
                                    <select name="" class="top_module_select" [(ngModel)]="tableSearchParam.companyName">
                                        <option value="">全部</option>
                                        <option value="海螺项目">海螺项目</option>
                                        <option value="万年青项目">万年青项目</option>
                                        <option value="锦荣项目">锦荣项目</option>
                                        <option value="宏昌项目">宏昌项目</option>
                                        <option value="冀东项目">冀东项目</option>
                                    </select>
                                </div>
                                <div class="top_module">
                                    <span class="module_text">车牌号码</span>
                                    <sa-select2 select2ElementID="carSelect2" (optionSelected)="companySelected($event)" matchSearch="true"></sa-select2>
                                </div>
                                <div class="selectDate top_module">
									<table-select-date [notInit]='false' (outerTime)="dateSelect($event)" ></table-select-date>
								</div>
								<button  type="button"  class="btn btn-primary" (click)="tableSearch()">查询</button>
								<button  type="button"  class="btn btn-primary" (click)="getData()">同步数据</button>
								<button type="button" class="btn btn-primary" (click)="exportData()">导出</button>
                            </div>
                            <!--<div class="right top-search">
								<input type="text" [(ngModel)]="searchKey" (change)="tableSearch()" class="search-input" placeholder="车牌号、操作人、描述、设备ID">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="tableSearch()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>-->
						</div>
						<div class="table_scroll">
							<table
								class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
									    <th>项目名称</th>
										<th>设备ID</th>
										<th>车牌号码</th>
										<th>续费状态</th>
										<th>续费时长</th>
										<th>开始时间</th>
										<th>结束时间</th>
										<th>日志类型</th>
										<th>创建时间</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData">
									    <td>{{row.companyName}}</td>
										<td>{{row.deviceId}}</td>
										<td>{{row.carNumber}}</td>
										<td>
										    <span class="orange" *ngIf="row.status == 0">未续费</span>
										    <span class="green" *ngIf="row.status == 1">已续费</span>
										</td>
                                        <td>{{row.renewalMonth}}个月</td>
                                        <td>{{row.startTime}}</td>
                                        <td>{{row.endTime}}</td>
                                        <td>
                                            <span *ngIf="row.type == 1">task生成</span>
                                            <span *ngIf="row.type == 2">页面同步</span>
                                        </td>
                                        <td>{{row.createTime}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCounts" [rows]="pageSize" [currentPage]="curPage - 1"
								(onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>